<?php
defined('BASEPATH') or exit('No direct script access allowed');

/**
 * 定时任务：订单过期短信提醒
 * @author weihu
 *
 */
class Order extends CI_Controller
{
    //订单过期提前十分钟发送短信（每小时执行一次）
    public function index()
    {
        $this->load->service('order_service');
        $this->order_service->expireOrderMsm();
    }
    
    //订单过期处理（每小时执行一次）
    public function expireorder()
    {
        $this->load->service('order_service');
        $this->order_service->expiredOrder();
    }
}